Ensure a variable is initialized
authorMatthias Clasen <mclasen@redhat.com>
Sat, 13 Jun 2015 21:49:20 +0000 (17:49 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Jun 2015 01:10:25 +0000 (21:10 -0400)
clang complained about transient_for being used uninitialized.

gdk/wayland/gdkwindow-wayland.c

index fded03a5187447ac46c853454f260170001f74af..4c448d70d5381ecaf28a595298d3c8d9d8bf253e 100644 (file)
@@ -1174,7 +1174,7 @@ static void
 gdk_wayland_window_map (GdkWindow *window)
 {
   GdkWindowImplWayland *impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
-  GdkWindow *transient_for;
+  GdkWindow *transient_for = NULL;
 
   if (!should_be_mapped (window))
     return;